<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>art-template</title>
</head>
<body>
  <h2 class="title">koa-art-template</h2>
  <h2>数据绑定</h2>
  {{ data.name }}
  <br>
  {{ 1 + 2 }}
  <hr>

  <h2>绑定html数据</h2>
  {{@ data.h }}
  <hr>

  <h2>条件</h2>
  {{ if data.num > 10 }}
    大于10
  {{  else }}
    小于等于10
  {{ /if }}
  <hr>

  <h2>循环数据</h2>
  <ul>
    {{ each list }}
      <li>{{ $index }}---{{ $value }}</li>
    {{ /each }}
  </ul>
  
  <hr>

  {{ include './public/footer.html' }}
</body>
</html>